<template>
  <a-card :bordered="false">
    <!-- table区域-begin -->
    <div>
      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        class="j-table-force-nowrap"
        :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
        @change="handleTableChange"
      >
        <span slot="action" slot-scope="text, record">
          <a @click="handleEdit(record)">编辑</a>
        </span>
      </a-table>
    </div>
    <!-- table区域-end -->

    <!-- 表单区域 -->
    <xhdjAgencyWithdrawal-modal ref="modalForm" @ok="modalFormOk"></xhdjAgencyWithdrawal-modal>
  </a-card>
</template>

<script>
import '@/assets/less/TableExpand.less'
import XhdjAgencyWithdrawalModal from './modules/xhdjAgreementConfigModal'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'

export default {
  name: 'XhdjAgencyWithdrawalList',
  mixins: [JeecgListMixin],
  components: {
    XhdjAgencyWithdrawalModal
  },
  data () {
    return {
      description: '协议相关',
      // 表头
      columns: [
        {
          title: 'id',
          align: 'center',
          dataIndex: 'id'
        },
        {
          title: '标题',
          align: 'center',
          dataIndex: 'titleName'
        },
        // {
        //   title: '内容',
        //   align: 'center',
        //   dataIndex: 'content',
        //   width: '600px'
        // },
        {
          title: '创建时间',
          align: 'center',
          dataIndex: 'createTime'
        },

        {
          title: '操作',
          dataIndex: 'action',
          align: 'center',
          scopedSlots: { customRender: 'action' }
        }
      ],
      url: {
        list: '/agreement/xhdjAgreementConfig/list'
        // delete: '/org.jeecg.modules.business.xhdjAgencyWithdrawal/xhdjAgencyWithdrawal/delete',
        // deleteBatch: '/org.jeecg.modules.business.xhdjAgencyWithdrawal/xhdjAgencyWithdrawal/deleteBatch',
        // exportXlsUrl: 'org.jeecg.modules.business.xhdjAgencyWithdrawal/xhdjAgencyWithdrawal/exportXls',
        // importExcelUrl: 'org.jeecg.modules.business.xhdjAgencyWithdrawal/xhdjAgencyWithdrawal/importExcel'
      }
    }
  },
  computed: {
    importExcelUrl: function () {
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
    }
  },
  methods: {}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>
